/*******
 * @author 大兵
 * @desc QQ:63399633
 * @desc QQ群:697732720
 * git地址 https://gitee.com/lybuser/spring-cloud-all.git
 * 代码配套视频教程  http://m.study.163.com/provider/480000001914549/index.htm?share=2&shareId=480000001914549
 */

package com.fire.cloud.consumer.feign;


import com.fire.cloud.consumer.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="provider-user",fallbackFactory= HystrixClientFactory.class)
public interface UserFeignClient {
    @RequestMapping(value = "/simple/{id}", method = RequestMethod.GET)
    public User findById(@PathVariable("id") Long id);

}
